import { createRouter, createWebHistory } from 'vue-router'
import LoginView from "@/views/authView/LoginView";
import CommentView from "@/views/asideView/CommentView";
import IndexView from "@/views/authView/IndexView";
import HotView from "@/views/asideView/HotView";
import FriendView from "@/views/asideView/FriendView";
import NowView from "@/views/asideView/NowView";
import DateView from "@/views/asideView/DateView";
import AdminLoginView from "@/views/authView/AdminLoginView";
import RegisterView from "@/views/authView/RegisterView";
import AboutMeView from "@/views/headerView/AboutMeView";
import NoticeView from "@/views/headerView/NoticeView";
import WriteArticleView from "@/views/headerView/WriteArticleView";
import ArticleSearchView from "@/views/asideView/ArticleSearchView";
import displayArticleView from "@/views/body/displayArticleView";
import PersonInformationView from "@/views/headerView/PersonInformationView";
import PersonArticleView from "@/views/headerView/PersonArticleView";
import LikeSearchView from "@/views/body/LikeSearchView";
import AdminArticleView from "@/views/adminView/AdminArticleView";
import AdminNoticeView from "@/views/adminView/AdminNoticeView";
import AdminSearchInformationView from "@/views/adminView/AdminSearchInformationView";
import AdminManagePersonView from "@/views/adminView/AdminManagePersonView";
import choice from "@/test/choice";

const routes = [
    //根
  {
    path: '/',
    name: 'Index',
    component: IndexView,
  },
    //首页
  {
    path: '/IndexView',
    name: 'IndexView',
    component: IndexView,
  },
    //个人用户登录页面
  {
    path: '/LoginView',
    name: 'LoginView',
    component: LoginView,
  },
    //个人用户注册页面
  {
    path: '/RegisterView',
    name: 'RegisterView',
    component: RegisterView,
  },
    //管理员登录页面
  {
    path: '/AdminLoginView',
    name: 'AdminLoginView',
    component: AdminLoginView,
  },
    //实时推荐页面
  {
    path: '/CommentView',
    name: 'CommentView',
    component: CommentView,
  },
    //最新文章页面
  {
    path: '/NowView',
    name: 'NowView',
    component: NowView,
  },
    //热门文章页面
  {
    path: '/HotView',
    name: 'HotView',
    component: HotView,
  },
    //实时聊天页面
  {
    path: '/FriendView',
    name: 'FriendView',
    component: FriendView,
  },
   //考研日历页面
  {
    path: '/DateView',
    name: 'DateView',
    component: DateView,
  },
  // 模糊搜索页面
  {
    path: '/LikeSearchView',
    name: 'LikeSearchView',
    component: LikeSearchView,
  },
    // 文章检索页面
  {
    path: '/ArticleSearchView',
    name: 'ArticleSearchView',
    component: ArticleSearchView,
  },

    // 关于我页面
  {
    path: '/AboutMeView',
    name: 'AboutMeView',
    component: AboutMeView,
  },

    // 通知页面
  {
    path: '/NoticeView',
    name: 'NoticeView',
    component: NoticeView,
  },

    //个人中心页面
  {
    path: '/PersonInformationView',
    name: 'PersonInformationView',
    component: PersonInformationView,
  },

    // 投稿页面
  {
    path: '/WriteArticleView',
    name: 'WriteArticleView',
    component: WriteArticleView,
  },

    //我的投稿页面
  {
    path: '/PersonArticleView',
    name: 'PersonArticleView',
    component: PersonArticleView,
  },

    // 文章详情页面 displayArticleView
  {
    path: '/displayArticleView',
    name: 'displayArticleView',
    component: displayArticleView,
  },

  // 管理个人用户文章页面 AdminArticleView
  {
    path: '/AdminArticleView',
    name: 'AdminArticleView',
    component: AdminArticleView,
  },

  // 管理员管理用户个人信息页面 AdminManagePersonView
  {
    path: '/AdminManagePersonView',
    name: 'AdminManagePersonView',
    component: AdminManagePersonView,
  },

  // 检索个人用户信息页面 AdminSearchInformationView
  {
    path: '/AdminSearchInformationView',
    name: 'AdminSearchInformationView',
    component: AdminSearchInformationView,
  },

  // 管理员发布通知页面 AdminNoticeView
  {
    path: '/AdminNoticeView',
    name: 'AdminNoticeView',
    component: AdminNoticeView,
  },

  // 多选框测试
  {
    path: '/choice',
    name: 'choice',
    component: choice,
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
